﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace ElectronicDiary.Models.Admin
{
    public class TeacherEditAddModel
    {
        [Required(ErrorMessage = "{0} jest wymagany.")]
        [Display(Name = "Login")]
        public string Login { get; set; }

        [Required(ErrorMessage = "{0} jest wymagany.")]
        [Display(Name = "Adres e-mail")]
        public string Mail { get; set; }

        [Required(ErrorMessage = "{0} jest wymagane.")]
        [StringLength(100, ErrorMessage = "Hasło {0} musi mieć conajmniej {2} znaków.", MinimumLength = 6)]
        [DataType(DataType.Password)]
        [Display(Name = "Hasło")]
        public string Password { get; set; }

        [Required(ErrorMessage = "{0} jest wymagane.")]
        [Display(Name = "Imie")]
        public string FName { get; set; }

        [Required(ErrorMessage = "{0} jest wymagane.")]
        [Display(Name = "Nazwisko")]
        public string LName { get; set; }

        public Guid UserId { get; set; }

        [Display(Name = "Numer telefonu")]  
        public string ContactNumber { get; set; }

        [Display(Name = "Aktywny")]
        public bool Active { get; set; }
    }
}